package com.liuyi.netty.im.server.handle.pipeline;

import com.liuyi.netty.im.commons.codes.data.LimData;
import com.liuyi.netty.im.server.config.LimController;
import com.liuyi.netty.im.server.util.ImHelp;
import io.netty.channel.ChannelHandlerContext;

/**
 * 退出处理
 *
 * @author Mr.Fmy
 * @since 2021-11-27
 */
public class LogoutProcessor extends AbstractProessor {


    public LogoutProcessor(LimController controller) {
        super(controller);
    }

    @Override
    public void processor(ChannelHandlerContext ctx, LimData data) {
        ImHelp.logout(ctx.channel());
    }
}
